package com.code.day04;

public class Demo01Array {
    public static void main(String[] args) {
//        String[] arr = {"貂蝉", "吕布", "曹操", "王允", "大乔", "小乔", "邹氏"};
//        System.out.println(arr.length);
//        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
//        }
//
//        String[] heros = new String[3];
//        heros[0] = "秦始皇";
//        heros[1] = "汉武帝";
//        heros[2] = "唐太宗";
//        System.out.println(heros[0]);
//        System.out.println(heros[1]);
//        System.out.println(heros[2]);

        int[] arr = new int[3];
        System.out.println(arr.length);
//        arr = null;
//        System.out.println(arr.length);
    }
}
